package world.hezi.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import world.hezi.entity.PicTag;

import java.util.List;

@Mapper
public interface PicTagMapper {
    List<PicTag> selectAll();
    @Select("select id from pic_tag where tag=#{tag}")
    Integer selectTagId(String tag);
    @Insert("insert into pic_tag(add_user, tag) values (#{addUser},#{tag})")
    void insert(PicTag picTag);
}
